/*
 *  scoreBoard - BalanceMeter.h
 *  Copyright 2011 W. Reckman. All rights reserved.
 */
#ifndef BALANCE_METER_H
#define BALANCE_METER_H

#include "ofTypes.h"

//21x8 (420x16)

class BalanceMeter {
public:
	static const int METER_WIDTH;
	static const int METER_HEIGHT;
	
	BalanceMeter();
	
	void draw() const;
	
	float getBalanceFloat() const;
	const ofPoint& getPosition() const;
	
	void setBalanceFloat( float balanceF_ ); //-0.5 (culture) - +0.5 (industry)
	void setBalanceIndustry( int balanceInd_ ); //100 - 0
	void setBalanceCulture( int balanceCult_ ); //0 - 100
	void addBalanceIndustry( int balanceInd_ ); //100 - 0
	void addBalanceCulture( int balanceCult_ ); //0 - 100
	
	void setPosition( const ofPoint& pos_ );
	void setPosition( float x_, float y_ );
	
private:
	//TODO: create shared meter + indicator image objects
	
	float balancePos;
	ofPoint pos;
};

#endif /* ! BALANCE_METER_H */
